package com.zy.edu.controller;


import com.zy.edu.service.DataConfigService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-28
 */
@RestController
@RequestMapping("/config")
public class DataConfigController {

    @Resource
    DataConfigService dataConfigService;

    @RequestMapping("get")
    public Map getByName( String name  ){
        return dataConfigService.getByName(name);
    }


    @RequestMapping("getAli")
    public Map getAli(   ){
        return dataConfigService.getAli();
    }
}

